package br.ucb.rest.persistencia.vo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the rst_categoria database table.
 * 
 */
@Entity
@Table(name="rst_categoria")
@SequenceGenerator(name="RST_CATEGORIA_NUCATEGORIA_GENERATOR", sequenceName="RESTAURANTE.RST_CATEGORIA_NU_CATEGORIA_SEQ")
public class CategoriaVO implements Serializable {
	private static final long serialVersionUID = 4032524869779096473L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO, generator="RST_CATEGORIA_NUCATEGORIA_GENERATOR")
	@Column(name="nu_categoria", unique=true, nullable=false)
	private Integer nuCategoria;

	@Column(name="in_situacao", nullable=false)
	private Boolean inSituacao;

	@Column(name="no_categoria", nullable=false, length=100)
	private String noCategoria;

	//bi-directional many-to-one association to CardapioVO
	@OneToMany(mappedBy="categoriaVO")
	private List<CardapioVO> colCardapioVO;

	public Integer getNuCategoria() {
		return nuCategoria;
	}

	public void setNuCategoria(Integer nuCategoria) {
		this.nuCategoria = nuCategoria;
	}

	public Boolean getInSituacao() {
		return inSituacao;
	}

	public void setInSituacao(Boolean inSituacao) {
		this.inSituacao = inSituacao;
	}

	public String getNoCategoria() {
		return noCategoria;
	}

	public void setNoCategoria(String noCategoria) {
		this.noCategoria = noCategoria;
	}

	public List<CardapioVO> getColCardapioVO() {
		return colCardapioVO;
	}

	public void setColCardapioVO(List<CardapioVO> colCardapioVO) {
		this.colCardapioVO = colCardapioVO;
	}
}